using System;
using System.Collections.Generic;
using System.Text;

namespace DMTT.Workflow.Activities
{
    public interface IMapProperties
    {
        Type SourceType { get; set;}
        Type DestinationType { get; set;}
        MappingCollection Mappings { get; set;}
        bool ValidateMapping(Mapping mapping);
    }

    [Serializable]
    public class MappingCollection : List<Mapping>
    {
    }

    [Serializable]
    public class Mapping
    {
        public Mapping()
        {
        }
        public Mapping(string from, string to)
        {
            this.from = from;
            this.to = to;
        }

        private string from;
        public string From
        {
            get { return from; }
            set { from = value; }
        }

        private string to;
        public string To
        {
            get { return to; }
            set { to = value; }
        }
    }
}
